package edu.lingnan.librarymanage.service;

import edu.lingnan.librarymanage.core.dto.CategoryDTO;
import edu.lingnan.librarymanage.core.vo.CategoryVO;

import java.util.List;

/**
 * @author cql
 */
public interface CategoryService {
    /**
     * 查询所有分类
     *
     * @return
     */
    List<CategoryVO> findAllCategory();

    /**
     * 新增分类
     *
     * @param category
     * @return
     */
    CategoryVO insertCategory(CategoryDTO category);

    /**
     * 删除分类
     *
     * @param categoryId
     */
    boolean delateCategory(Integer categoryId);

    void updateCategory(CategoryDTO category);
}
